package com.zhaodi.mybatisflexdemo.entity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;

/**
 * 
 * @TableName tb_sys_role_permission
 */
@FieldNameConstants
@Data
@Table("tb_sys_role_permission")
public class TbSysRolePermission implements Serializable {
    /**
     * 主键
     */
    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private Integer id;

    /**
     * 角色ID
     */
    private Integer roleId;

    /**
     * 权限ID
     */
    private Integer permissionId;

    /**
     * 
     */
    @Column(isLogicDelete = true)
    private Integer state;

    private static final long serialVersionUID = 1L;
}